import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    children: [
      {
        path: '/tourismIndex',
        component: () => import('../views/tourism/TourismIndexView.vue')
      },
      {
        path: '/teamTrip',
        component: () => import('../views/tourism/TeamTripView.vue')
      },
      {
        path: '/freeTrip',
        component: () => import('../views/tourism/FreeTripView.vue')
      },
      {
        path: '/japan',
        component: () => import('../views/tourism/country/abroad/JapanView.vue')
      },
      {
        path: '/taiguo',
        component: () => import('../views/tourism/country/abroad/ThailandView.vue')
      },
      {
        path: '/aomen',
        component: () => import('../views/tourism/country/abroad/aomenView.vue')
      },
      {
        path: '/bingdao',
        component: () => import('../views/tourism/country/abroad/bingdaoView.vue')
      },
      {
        path: '/maerdaifu',
        component: () => import('../views/tourism/country/abroad/maerdaifuView.vue')
      },
      {
        path: '/pujidao',
        component: () => import('../views/tourism/country/abroad/PhuketView.vue')
      },
      {
        path: '/ruishi',
        component: () => import('../views/tourism/country/abroad/SwissView.vue')
      },
      {
        path: '/xinjiapo',
        component: () => import('../views/tourism/country/abroad/SingaporeView.vue')
      }
    ]
  },
  {
    path: '/reg',
    component: () => import('../views/RegView.vue')
  },
  {
    path: '/login',
    component: () => import('../views/LoginView.vue')
  }
]
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
